import { ApiCall } from "tsrpc";
import { ReqDeleteTalk, ResDeleteTalk } from "../../shared/protocols/talks/PtlDeleteTalk";
import { Global } from '../../Global/index';

export default async function (call: ApiCall<ReqDeleteTalk, ResDeleteTalk>) {
    // TODO
    const talkId = call.req.talkId

    await Global.collection('talks').deleteOne({
        _id:talkId
    })

    call.succ({
        
    })
}